/*
 * @Author: xiaxia
 * @Description: 
 * @Date: 2024-06-19 17:54:02
 * @LastEditTime: 2024-06-26 11:31:20
 * @FilePath: \project\src\api\user\type.ts
 */
// 定义全部接口返回数据拥有的类型
export interface responseData {
  code: number,
  message: string,
  ok: boolean,
}

// 登录请求参数
export interface loginForm {
  createTime?:string,
  updateTime?:string,
  id?: number,
  name?:string,
  phone?:string,
  roleName?:string,
  username: string,
  password: string
}

// 登录返回数据
export interface loginResponse extends responseData{
  data?: string,
}

// 用户信息返回
interface user {
  avatar: string,
  name: string,
  roles: string[],
  buttons: string[],
  routes: string[],
}
export interface userPesponseData extends responseData{
  data:user,
}